package com.gegewa.simplefactory;

public class ChannelFactory {

    public static Channel createChannel(String person) {
        Channel channel = null;
        switch (person) {
            case "father" :
                channel = new News();
                break;
            case "mather" :
                channel = new Fashion();
                break;
            case "child" :
                channel = new Cartoon();
                break;
        }
        return channel;
    }

}
